﻿using System;
using System.Collections.Generic;
using OA.DBUtility;
namespace OA.Model
{

    [MappingTable("ReimbursementView")]
    public partial class ReimbursementInfoView : ReimbursementInfo
    {
        [DataField("ProjectName")]
        public string ProjectName { get; set; }
        [DataField("DeptName")]
        public string DeptName { get; set; }

        [DataField("EmployeeCardID")]
        public string EmployeeCardID { get; set; }

        [DataField("EmployeeName")]
        public string EmployeeName { get; set; }
        public List<ReimbursementItemInfo> ReimbursementItemInfoColl { get; set; }
    }

    /// <summary>
    /// Reimbursement:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    [MappingTable("Reimbursement")]
    public partial class ReimbursementInfo
    {
        public ReimbursementInfo()
        { }
        #region Model
        private int _id;
        private string _projectnum;
        private int? _employeeid;
        private string _description;
        private string _costtype;
        private int _billcount = 0;
        private decimal? _totalmoney;
        private DateTime? _reimbursementtime;
        private string _payWay;

        [DataField("PayWay")]
        public string PayWay
        {
            get { return _payWay; }
            set { _payWay = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("Id")]
        [PrimaryKey(PKBuildType.AutoIncrease)]
        public int Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ProjectNum")]
        public string ProjectNum
        {
            set { _projectnum = value; }
            get { return _projectnum; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("EmployeeId")]
        public int? EmployeeId
        {
            set { _employeeid = value; }
            get { return _employeeid; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("Description")]
        public string Description
        {
            set { _description = value; }
            get { return _description; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("CostType")]
        public string CostType
        {
            set { _costtype = value; }
            get { return _costtype; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("BillCount")]
        public int BillCount
        {
            set { _billcount = value; }
            get { return _billcount; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("TotalMoney")]
        public decimal? TotalMoney
        {
            set { _totalmoney = value; }
            get { return _totalmoney; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ReimbursementTime")]
        public DateTime? ReimbursementTime
        {
            set { _reimbursementtime = value; }
            get { return _reimbursementtime; }
        }


        /// <summary>
        /// 导出模版类型
        /// </summary>
        [DataField("ExportType")]
        public string ExportType { get; set; }

        #endregion Model

    }
}

